﻿Imports DTO
Imports DAO

Public Class CTheLoaiSachBUS
    Public Function LayDanhSachTheLoaiSach() As List(Of CTheLoaiSachDTO)
        Return New CTheLoaiSachDAO().LayDanhSachTheLoaiSach()
    End Function

    Public Function ThemTheLoaiSach(ByVal tentheloaisach As String) As Integer
        Return New CTheLoaiSachDAO().ThemTheLoaiSach(tentheloaisach)
    End Function


    Public Function CapNhatTheLoaiSach(ByVal theloaisach As CTheLoaiSachDTO) As Integer
        Return New CTheLoaiSachDAO().CapNhatTheLoaiSach(theloaisach)
    End Function


    Public Function LayTenTheLoaiSachTheoMa(ByVal _ma As Integer) As String
        Return New CTheLoaiSachDAO().LayTenTheLoaiSachTheoMa(_ma)
    End Function

    Public Function MuonSachTheoTheLoai(ByVal thang As Integer, ByVal nam As Integer) As List(Of CTheLoaiSachDTO)
        Return New CTheLoaiSachDAO().MuonSachTheoTheLoai(thang, nam)
    End Function

End Class
